<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>物流管理系统</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/css/layui.css">
    <style>
        /* 自定义样式 */
        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        .nav-container {
            background-color: #393D49;
            height: 100%;
            width: 200px;
            position: fixed;
            left: 0;
            top: 0;
            padding-top: 70px;
        }
        .nav-item {
            margin-bottom: 10px;
        }
        .nav-item a {
            display: block;
            padding: 10px;
            color: #fff;
            text-decoration: none;
            transition: background-color 0.3s;
            border-left: 5px solid transparent;
        }
        .nav-item a:hover {
            background-color: #5FB878;
            border-left-color: #FF5722;
        }
        .main-content {
            margin-left: 200px;
            padding: 20px;
            padding-top: 70px;
        }
        .header {
            background-color: #393D49;
            color: #fff;
            height: 50px;
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            line-height: 50px;
            padding-left: 10px;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        .footer {
            background-color: #f2f2f2;
            position: fixed;
            bottom: 0;
            left: 200px;
            right: 0;
            height: 100px;
            z-index: 1000;
        }
        .footer-content {
            padding: 20px;
        }
    </style>
</head>
<body>

<div class="nav-container">
    <div class="nav-item">
        <a href="/twoGroup/userinfo/ulist">韩森宇-用户信息</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/toGoodsHome}">王腾鑫-收货管理</a>
    </div>
    <div class="nav-item">
        <a href="#">派件管理</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/twoGroup/settings}">基础资料设置</a>
    </div>
    <div class="nav-item">
        <a class="nav-link" th:href="@{/toStatement}">戴明东-报表查询</a>
    </div>
</div>

<div class="header">
    <div style="font-size: 24px; font-weight: bold;">物流管理系统</div>
</div>

<div class="main-content">
    <!-- 此处用于展示功能的实现 -->
</div>

<div class="footer">
    <div class="footer-content">
        版权所有 © 2024 物流管理系统
    </div>
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.js"></script>
<script>
    $(document).ready(function(){
        $('.report-link').click(function(event) {
            event.preventDefault(); // 阻止默认跳转行为
            redirectToPage('/report_statistics'); // 修改为报表统计首页地址
        });
    });

    function redirectToPage(url) {
        window.location.href = url; // 使用 JavaScript 跳转页面
    }
</script>
</body>
</html>
